import javax.sound.midi.MidiUnavailableException;

public class MelodicMinorScale extends MinorScale
{
	public MelodicMinorScale(Pitch root)
	{
		super(root);
		
		scale.set(5, new Pitch(scale.get(5).freq.next()));
		scale.set(6, new Pitch(scale.get(6).freq.next()));
	}
	
	public Scale octaveUp()
	{
		return new MelodicMinorScale(new Pitch(scale.get(0).freq.octaveUp()));
	}
	
	public static void main(String[] args) throws SyntaxErrorException, MidiUnavailableException
	{
		Scale Cm = new MelodicMinorScale(new Pitch("C4"));
		Cm.play(1000);
	}
}
